<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
  </head>
  <body>
    <p><span id="a"></span><span id="b"></span>Hi</p>
    <p><a href="#a">A</a> <a href="#b">B</a> <a href="#a">C</a></p>
  </body>
</html>
